package com.lyf.boot.job.task;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author Luyufan
 * @date 2024/1/12 13:33
 **/
@Slf4j
@Component
@RequiredArgsConstructor
public class AdminTask {

    @XxlJob("adminTaskHandler")
    public void adminTaskHandler(){
        log.debug("定时任务执行了");
        XxlJobHelper.log("定时任务执行结束了");
    }
}
